<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
	xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
      >

  <body>
    <ui:composition>

            <nav id="nav_aside" >
            
        		<h:form>
					 <h:dataTable value="#{controllerBeanJsf.catalogs}" var="catalog">
								<h:column>
									<ul>
			                			<li>
			                				<h:commandLink value="" action="#{controllerBeanJsf.searchCatalog}" >
												<f:setPropertyActionListener value="#{catalog}" target="#{controllerBeanJsf.selectedCatalog}" />
											</h:commandLink>
										</li>
			            			</ul>
								</h:column>
					</h:dataTable>
			               
				<table id="table_aside" border="0" style="min-height:200px; width:9O%">
				<div  >
					<tr>
						<td >
							<h:dataTable value="#{controllerBeanJsf.types}" var="type" border="0">
								<h:column>
									<h:commandLink value="#{type.label}" action="#{controllerBeanJsf.searchTicket}">
										<f:setPropertyActionListener id="ici" value="#{type}" target="#{controllerBeanJsf.selectedType}" />											
									</h:commandLink>
								</h:column>
							</h:dataTable>
						</td>
						<td>
							<table>
								<tr>
									<td>
									<h:dataTable value="#{controllerBeanJsf.tickets}" var="ticket" border="1">
										<h:column>
											<h:commandLink value="#{ticket.name}" action="#{controllerBeanJsf.searchTicketById}">
												<f:setPropertyActionListener value="#{ticket}" target="#{controllerBeanJsf.selectedTicket}" />
											</h:commandLink>
										</h:column>
									</h:dataTable>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					</div>
				</table>
			</h:form>
						
				
            </nav>
      </ui:composition>
   </body>
</html>

